<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Which_week')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-which_week" class="form-control" readonly style="border: none;background-color: #fff;" type="text" value="{$row.which_week|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Startdate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-startdate" class="form-control datetimepicker" readonly style="border: none;background-color: #fff;" data-date-format="YYYY-MM-DD" data-use-current="true" type="text" value="{$row.startdate}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Enddate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-enddate" class="form-control datetimepicker" readonly style="border: none;background-color: #fff;" data-date-format="YYYY-MM-DD" data-use-current="true" type="text" value="{$row.enddate}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Keynote')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-keynote" class="form-control" name="row[keynote]">{$row.keynote|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Other_work')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-other_work" class="form-control" name="row[other_work]">{$row.other_work|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8" style="overflow-x: auto;">
            
                <table class="table table-striped table-bordered table-hover table-nowrap" width="100%">
                    <thead>
                        <tr>
                            <th style="width: 55px;">时间</th>
                            <th>上午</th>
                            <th style="min-width: 45px;"></th>
                            <th>下午</th>
                            <th style="min-width: 45px;"></th>
                        </tr>
                    </thead>
                    <tbody>
                        {foreach name=":json_decode($row.content, true)" id="item" key="key"}
                        <tr>
                            <td>
                                <P><input readonly style="border: none;" type="text" name="row[content][{$key}][date]" value="{$item.date}"/></P>
                                <p><input readonly style="border: none;" type="text" name="row[content][{$key}][name]" value="{$item.name}"/></p>
                            </td>
                            {foreach name="item.list" id="temp"  key="key1"}
                                <td style="background-color: {:$temp.color};">
                                    <input type="hidden" name="row[content][{$key}][list][{$key1}][color]" value="{$temp.color}"/>
                                    <p>内容：<input type="text" name="row[content][{$key}][list][{$key1}][value]" value="{$temp.value}"/></p>
                                </td>

                            {/foreach}
                        </tr>
                        {/foreach}
                    </tbody>
                </table>

        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
